// @ts-ignore
import { Request, Response } from 'express';

export default {
//   'GET /api/user/getRepos': (req: Request, res: Response) => {
//     res.status(200).send({
//       code:200,
// msg:"获取成功",
// data:[
//         {
//             "human_name": "蠢蠢航chunCH/CodeTrail-智能工程助手",
//             "full_name": "cch0608/codeTrail",
//             "html_url": "https://gitee.com/cch0608/codeTrail.git"
//         },
//         {
//             "human_name": "xrj111/big-event",
//             "full_name": "xrj111/big-event",
//             "html_url": "https://gitee.com/xrj111/big-event.git"
//         },
//         {
//             "human_name": "xrj111/mytest",
//             "full_name": "xrj111/mytest",
//             "html_url": "https://gitee.com/xrj111/mytest.git"
//         }
//     ]
//     });
//   },
  'POST /api/user/add': (req: Request, res: Response) => {
    res.status(200).send({
      code: 200,
      msg: '战别高会角华单也会至比程反再接学。',
      success: false,
      data: '证代思石能光算包实放正条并上级门美界。',
    });
  },
  'GET /api/user/list': (req: Request, res: Response) => {
    res.status(200).send({
      code: 200,
      msg: '整事极同段产积层细生强技育度可。',
      success: true,
      data: {
        user1: {
          id: 69,
          username: 'Rodriguez',
          password: 'V7U3SzK5JB5VW]Yc',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
          phone: '11208005074',
          email: 'r.bujy@pjlyu.mil',
          gender: false,
          age: 68,
          tags: ['查决无把分回火及此局备农容命济因。'],
          biography: '准感义眼门实观来热度着要电目思。',
        },
        user2: {
          id: 82,
          username: 'Thomas',
          password: '8p5SzM$J8oS1y1hy',
          avatar: 'https://gw.alipayobjects.com/zos/rmsportal/udxAbMEhpwthVVcjLXik.png',
          phone: '11258684217',
          email: 'w.wdmpfcmc@mjbgwxd.cf',
          gender: false,
          age: 80,
          tags: [
            '两或活并等什压说更于子么无始角线以记。',
            '片流金表教再己引存求人马率次周是你。',
            '路战内听争无明无通近反平设化。',
            '很什光积深作候质这增么原素流家总。',
          ],
          biography: '果如子持东织了到术第化选油造最许期。',
        },
      },
    });
  },
  'GET /api/user/get': (req: Request, res: Response) => {
    res.status(200).send({
      code: 200,
      msg: '本些老单应电来十林百研工么青直到原。',
      success: true,
      data: {
        user: {
          id: 78,
          username: 'Jackson',
          password: 'Wh6MNNUouEqO$I7T',
          avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
          phone: '11275423505',
          email: 's.xuz@qrxmzcm.fi',
          gender: true,
          age: 69,
          tags: [
            '如变引行治山支着声分打海或住前。',
            '间团维叫万千毛六干手此又书界断养存。',
            '毛的变品品必习少报路北经山实共。',
            '表大放管该持光石质各立许厂。',
            '平处活铁南至了手样出究性采美业转头快。',
            '技矿头往被么增保统决队治议族太白。',
            '又料回加使总情里离要以所入型量细干度。',
            '马提平专易近回下历志立传再。',
            '厂华天交制六使龙队争务常中路持者划广。',
            '政利一将结机极世许走布公商西。',
          ],
          biography: '三区改决率做思合龙阶务连生们满。',
        },
      },
    });
  },
  'DELETE /api/user/del': (req: Request, res: Response) => {
    res.status(200).send({ code: 200, msg: '办压复花应相装收应接认取工来。', success: true });
  },
  'PUT /api/user/edit': (req: Request, res: Response) => {
    res
      .status(200)
      .send({ code: 200, msg: '铁重听该业科报造导明型应花事起后新改。', success: true });
  },
  'POST /api/user/login': (req: Request, res: Response) => {
    res.status(200).send({
      code: 200,
      msg: '登录成功',
      success: true,
      data: '123',
    });
  },
};
